﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:Clases="clr-namespace:BancoSim.Utils.Clases;assembly=BancoSim.Utils"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	mc:Ignorable="d"
	x:Class="BancoSim.ucCaja"
	x:Name="UserControl" Loaded="UserControl_Loaded" Width="252" Height="110">
    <UserControl.Resources>
        <DataTemplate x:Key="DataTemplate1">
            <Grid/>
        </DataTemplate>
        <ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
            <StackPanel>
                <i:Interaction.Behaviors>
                    <ei:FluidMoveBehavior Duration="0:0:0.5" AppliesTo="Children"/>
                </i:Interaction.Behaviors>
            </StackPanel>
        </ItemsPanelTemplate>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Button Background="White" HorizontalAlignment="Left" Content="P" x:Name="btnPlay" Width="20" Click="btnPlay_Click" Margin="1"/>
            <Label Grid.Column="1" Foreground="White" FontWeight="Bold" HorizontalContentAlignment="Center" Height="23" Name="lbTarea" Content="Tarea" FontSize="10"/>
            
           
        </Grid>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0">
                <ProgressBar x:Name="pbAvance" Foreground="Green" Height="85" Width="10" Background="#FFFFFBFB" Orientation="Vertical"/>
            </Grid>

            <Grid Grid.Column="1">
                <DataGrid AutoGenerateColumns="False" Height="100" ItemsSource="{Binding}" x:Name="dgProcesados" ItemTemplate="{DynamicResource DataTemplate1}" ItemsPanel="{DynamicResource ItemsPanelTemplate1}" Background="Black">
                    <DataGrid.Columns>
                        <DataGridTextColumn IsReadOnly="True" x:Name="nombreColumn" Binding="{Binding Nombre}" Width="70" Header="Nombre" CanUserSort="False"/>
                        <DataGridTextColumn IsReadOnly="True" x:Name="Peso" Binding="{Binding PesoS}" Header="Peso" Width="60" CanUserSort="False"/>
                        <DataGridCheckBoxColumn IsReadOnly="True" x:Name="PeticionEspecial" Binding="{Binding PeticionEspecial}" Header="PE" Width="sizeToHeader" CanUserSort="False"/>
                        <DataGridTextColumn IsReadOnly="True" x:Name="inicioColumn" Binding="{Binding Llegada}" Header="Llegada" Width="SizeToHeader" CanUserSort="False"/>
                    </DataGrid.Columns>
                </DataGrid>
            </Grid>

        </Grid>
    </Grid>
</UserControl>